
  
package br.com.ltn4java.transformation;

/**
 * Create in July, 14, 2011
 * Criado em 14 de julho de 2011<br/>
 *  Qualquer sugestão envia um e-mail para mim miguellima@aljug.com.br <br/>
 * Any suggestions send an e-mail me miguellima@aljug.com.br <br/>
 * http://aljug.blogspot.com - ALJUG - Alagoas Java User Group <br/>
 * http://miguellimapj.blogspot.com - Miguel´s blog </br>
 * @author Miguel
 * @version ltn4java 0.1 <br/>
 */
public class WordForNumber {


    public WordForNumber() {
    }

   /**
    *
    * @param word
    * Variable that the User wants to convert to int
    * @return Controller
    * is the Number Total of letters<br/>
    * Example: word = "Alagoas Java User Group"<br/>
    * So the result will be <b>20</b>
    */

    public int WordForNumberTotal(String word) {
        word = word.replaceAll(" ", "");
        int controller = word.length();
        System.out.println(controller);
        return controller;
    }




}